package com.chenfwind.common;

public class Constant {
	public static Integer CODE_SUCCESS = 10000;            //成功
	public static Integer CODE_ERROR   = 50000;            //失败
	public static Integer CODE_NODATA  = 11001;            //没有数据
	public static Integer CODE_NOLOGIN = 10001;
	public static Integer CODE_NOPARAM = 12001;            //缺少参数
	public static Integer CODE_ACCOUNT_NOFOUND = 20001;    //账号不存在
	public static Integer CODE_ACCOUNT_PWD_INVALID = 20002;//账号或密码错误
	public static Integer CODE_ACCOUNT_EXISTS = 20003;     //账号已存在
	
	public static Integer CODE_SECRETID_DOSE_NOT_EXIST = 40006;// secretid不存在

	public static Integer CODE_SIGN_FAILED = 40007;// 验签失败

	public static Integer CODE_REPLAY_ATTACKS = 40008;// 重放攻击

	public static Integer CODE_EXPIRED_TIMESTAMP = 40012;// 时间戳过期
	
	public static Integer CODE_FREQUENCY_OVERRUN_APPID_URI_UID = 40003;// 访问频率超限

	public static Integer CODE_TOKEN_INVALID = 20009;// 登录超时

	public static Integer CODE_TOKEN_FORCED_OFFLINE = 20010;// 该帐号已在别处登录，被迫下线
	
	public static final String CODE_MSG_NOPARAM = "缺少参数";
	public static final String CODE_MSG_ACCOUNT_NOFOUND = "账号不存在";
	public static final String CODE_MSG_ACCOUNT_PWD_INVALID = "账号或密码错误";
	public static final String CODE_MSG_ACCOUNT_EXISTS = "用户账号已存在";
	public static final String CODE_NO_DATA = "没有数据";
	// 删除标记
	public static final Integer DELETE_STATUS_ON = 1;// 删除状态开启， 数据已经逻辑删除
	public static final Integer DELETE_STATUS_OFF = 0;// 删除状态关闭，默认为关闭

	// 启用状态
	public static final Integer STATUS_ON = 1;// 默认启用
	public static final Integer STATUS_OFF = 0;// 停用
	
	public static final String CODE_MSG_STATUS_OFF = "该用户已停用";
	
	// secretKey
	public static final String SECRET_KEY = "grnwa1E7reaNj0eUuazRe581RQU=";
	// 锁定uid时间，10分钟(ehCache使用秒为单位)
	public static final Integer LOCK_TIME = 10 * 60;
	// 一分钟内最大允许访问次数
	public static final Integer VISIT_MAX_FREQUENCY = 120;
	
	public static final String STATUS_NAME_ON = "启用";// 默认启用
	public static final String STATUS_NAME_OFF = "停用";// 停用
	
	public static final String MSG_DATE_FORMAT_EXCEPTION = "日期格式错误！";
	
	public static final String COMMENT_STATUS = "0";          //未处理
	public static final String COMMENT_STATUS_SUCCESS = "1";     //接受
	public static final String COMMENT_STATUS_FAIL = "2";  //拒接
	
	
}
